<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');
/**
 * @author duongbq
 * Note: $route variable must be declared as a member of array to avoid errors...
 */

$route['^ticket-admin$'] = 'ticket/ticket_admin/list_ticket/0';
$route['admin/ticket'] = 'ticket/admin/index';
$route['admin/ticket/(:any)'] = 'ticket/admin/$1';

$route['^ticket$'] = 'frontend/frontend_dispatcher/ticket/list_ticket';
$route['^open-ticket$'] = 'frontend/frontend_dispatcher/ticket/list_ticket';
$route['^ticket/list-ticket/(:num)$'] = 'frontend/frontend_dispatcher/ticket/list_ticket/$1';
$route['^ticket/search$'] = 'frontend/frontend_dispatcher/ticket/search';
$route['^ticket/search/(:any)$'] = 'frontend/frontend_dispatcher/ticket/search/$1';
$route['^ticket/search/(:any)/(:num)$'] = 'frontend/frontend_dispatcher/ticket/search/$1/$2';
$route['^ticket/list-ticket'] = 'frontend/frontend_dispatcher/ticket/list_ticket/0';
$route['^ticket/detail$'] = 'frontend/frontend_dispatcher/ticket/detail';
$route['^ticket/detail/(:num)$'] = 'frontend/frontend_dispatcher/ticket/detail/$1';
//$route['^emails/(add|edit|delete|download|compare)$'] = 'frontend/admin_dispatcher/emails/$1_email';

